<script>
	$(document).ready(function()
	{
		$('.submenu').hide();
		$('li.active').find('ul').show(); 
		$('li.main_menu a').click(function() 
		  {
				// slides up all the list with class 'main_menu' 
				var _this =  $(this);
				_this.parent().find('ul').slideToggle('slow');
    	  });
	});
</script>
<div class="adminLeftpanel moduletable_menu" id="menu">
    <h3>Publications</h3>
    <?php $current_url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];?>
    <ul class="menu">
<?php    if ($this->session->userdata('pub_admin_login_id')) 
			{ ?>
        <li id="<?php echo (strpos($current_url, site_url('home'))!==false)?"current":"";?>">
        	<a href="<?php echo site_url('home');?>">Dashbord</a>
        </li>
        <li id="<?php echo (strpos($current_url, site_url('category'))!==false)?"current":"";?>">
        	<a href="<?php echo site_url('category');?>">Manage Thematic Areas</a>
        </li>
        <li id="<?php echo (strpos($current_url, site_url('publication'))!==false)?"current":"";?>">
        	<a href="<?php echo site_url('publication');?>">Manage Publications</a>
        </li>
         <!--<li id="<?php echo (strpos($current_url, site_url('locations'))!==false)?"current":"";?>">
        	<a href="<?php echo site_url('locations');?>">Manage Locations/Boxes</a>
        </li>
        <li id="<?php echo (strpos($current_url, site_url('quantity'))!==false)?"current":"";?>">
        	<a href="<?php echo site_url('quantity');?>">Manage publication Quantity</a>
        </li>
       
        <li class="main_menu active">
        <a href='javascript:void(0);'>Manage Quantity</a>
        <span style="font-weight:bold;"></span>
            <ul class="submenu">
            	<li><a href="">Total quantity of publications</a></li>
                <li><a href="">Total quantity on store</a></li>
            </ul>
        </li>
    </li>-->
    <!--</ul>
    <h2>Members</h2>
    <ul>-->
    <li id="<?php echo (strpos($current_url, site_url('borrower'))!==false)?"current":"";?>"><a href="<?php echo site_url('borrower');?>">Manage Borrower</a></li>
    <li id="<?php echo (strpos($current_url, site_url('member'))!==false)?"current":"";?>"><a href="<?php echo site_url('member');?>">Manage Members</a></li>
    <li id="<?php echo (strpos($current_url, site_url('report'))!==false)?"current":"";?>"><a href="<?php echo site_url('report');?>">Reports</a></li>
    <?php }else{?>
	<li id="current"><a href="<?php echo site_url('welcome');?>">Publication</a></li>
    
    <?php }?>
   </ul>
</div>